package com.niit.service;

import com.niit.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService{
    User findByInfoIdAndUserType(Integer id, Boolean type);
    User save(User user);
    Page<User> findAll(String phone, String username, String realName, String gender, Boolean userType, Pageable pageable);
    User findById(Integer id);
    void deleteById(Integer id);
}
